﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Draco.Commons.Container
{
    /// <summary>
    /// 名称与值对
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <typeparam name="K"></typeparam>
    public class NameValuePair<T,K>
    {
        private T m_t;
        private K m_k;

        /// <summary>
        /// 获取或设置Name
        /// </summary>
        public T Name
        {
            get { return m_t; }
            set { m_t = value; }
        }
        /// <summary>
        /// 获取或设置Value
        /// </summary>
        public K Value
        {
            get { return m_k; }
            set { m_k = value; }
        }

        /// <summary>
        /// 构造
        /// </summary>
        public NameValuePair()
        {

        }
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="t"></param>
        /// <param name="k"></param>
        public NameValuePair(T t,K k)
        {
            m_t = t;
            m_k = k;
        }
    }
}
